var SelectGirl = /** @class */ (function () {
    function SelectGirl(girls) {
        this.girls = girls;
    }
    SelectGirl.prototype.getGirl = function (index) {
        return this.girls[index].name;
    };
    return SelectGirl;
}());
var selectGirl = new SelectGirl([
    { name: 'dajiao' },
    { name: 'liuying' },
    { name: 'xiaohong' }
]);
console.log(selectGirl.getGirl(1));
// class SelectGirl<T extends number | string> {...}
// new SelectGirl<string>(['dajiao','liuying','xiaohong'])
